package cn.sciento.onelink.sim.group.data.usage;

import cn.sciento.onelink.CommonResponse;
import cn.sciento.onelink.LinkRequest;
import cn.sciento.onelink.utils.TransIdUtil;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * 群组本月流量累计使用量实时查询
 * @author walton
 */
@Data
public class SimGroupUsageRequest extends LinkRequest<CommonResponse<SimGroupUsageResult>> {
    private String appId;
    private String token;
    private String groupId;

    public SimGroupUsageRequest(String appId, String token, String groupId) {
        super(Method.GET);
        this.appId = appId;
        this.token = token;
        this.groupId = groupId;
        this.path = "/ec/query/group-data-usage";
        Map<String, Object> headMap = new HashMap<String, Object>();
        this.setHeader(headMap);
        Map<String, Object> bodyMap = new HashMap<String, Object>();
        bodyMap.put("transid", TransIdUtil.generate(appId));
        bodyMap.put("token",token);
        bodyMap.put("groupId",groupId);
        this.setCompleteUrl(this.path,bodyMap);


    }
}
